package com.corpgovernment.organization.service;

import com.corpgovernment.common.tuple.Tuple2;
import com.corpgovernment.organization.entity.SyncEmployeeRequestEntity;
import com.corpgovernment.organization.enumm.ServiceErrorEnum;

/**
 * @author ：llw
 * @date ：Created in 2020/12/11 14:33
 * @description：
 * @modified By：
 * @version: $
 */
public interface ISyncEmployeeService {

    /**
     * 新增员工
     *
     * @param employee
     * @return
     */
    Tuple2<ServiceErrorEnum, Long> addEmployee(SyncEmployeeRequestEntity.SyncEmployeeInfoEntity employee);

    /**
     * 修改员工
     *
     * @param employee
     * @return
     */
    Tuple2<ServiceErrorEnum, Long> updateEmployee(SyncEmployeeRequestEntity.SyncEmployeeInfoEntity employee);

    /**
     * 删除员工
     *
     * @param employee
     * @return
     */
    Tuple2<ServiceErrorEnum, Long> deleteEmployee(SyncEmployeeRequestEntity.SyncEmployeeInfoEntity employee);

	void syncEmployeeInfo(SyncEmployeeRequestEntity employeeInfo) throws Exception;
}